home *** CD-ROM | disk | FTP | other *** search
/ How Multimedia Computers Work / How Multimedia Computers Work (1994-6-17) [English].mdf / setup.inf < prev    next >
INI File  |  1994-06-16  |  23KB  |  472 lines

  1. ; ABOUT THIS FILE
  2. ; ===============
  3. ;
  4. ; Version 1.03 (11/6/93)
  5. ;       -added support for SMUSHED files -- that is multiple files smushed into
  6. ;        a single file (to save on slack space)
  7. ;       -added some code to clean up resources during aborted installs
  8. ;       -removed support via goofy Microsoft DOS.ASM file and used standard lib
  9. ;        calls instead
  10. ;
  11. ; Version 1.02
  12. ;       -rearranged code to include #defines for major product special cases
  13. ;
  14. ; Version 1.01 (10/31/92)
  15. ;       -added STRICT and WINVER=0x300 #defines
  16. ;       -fixed a memory leak and a couple of RIPs
  17. ;       -emoved special compile time support for Dollars & Sense
  18. ;       -added special compile time switch to enable special functions for the
  19. ;        Multimedia Animals install.  For Animals, we check to see if the "Video
  20. ;        for Windows(tm)" drivers are installed.  If not, we install them.  The
  21. ;        file list must reside in the INF file in a section called [avi.driver.stuff]
  22. ;        and the total of the AVI driver file sizes must be entered as "minspace=xxxxx"
  23. ;        in a [avi.needed.space] section.
  24. ;
  25. ; Version 1.00 (10/10/91)
  26. ;        Now allows users to install to any directory depth.  Due to poor planning,
  27. ;        the previous version only allowed installation to one level off of the root.
  28. ;
  29. ; Version 0.93 (9/2/91)
  30. ;        Fixed SETUP so that it now shows up in the task select list (i.e. CTRL-ESC).
  31. ;        Linked in the fixed PKZIP compression libs that caused some problems on
  32. ;        8086 machines.
  33. ;
  34. ; Version 0.92 (8/9/91)
  35. ;        Changed the DOS mode program to only display a message and not attempt
  36. ;        to find and launch Windows due to problems with some sytems
  37. ;
  38. ;
  39. ; This file, SETUP.INF, contains information that SETUP.EXE uses to install
  40. ; applications.  This file must be in the same directory as the program
  41. ; file SETUP.EXE.  The two files can be on a floppy disk, a hard disk, or
  42. ; a network disk drive.
  43. ;
  44. ; If SETUP.EXE is run without any command line parameters, SETUP searches
  45. ; for the default info file SETUP.INF.  You can force SETUP to use another
  46. ; info file by adding its filename (with no drive or path) to the command
  47. ; line.  For instance, adding NEWSETUP.INF to the command line, causes
  48. ; SETUP to take its text input from the file NEWSETUP.INF that resides in
  49. ; the same directory with SETUP.EXE.  This feature is included primarily
  50. ; to handle installations with a number of different installation
  51. ; configurations.  Simply write a simple Windows program that asks the user
  52. ; for his configuration options and then launch SETUP with the command line
  53. ; paramater naming the file with the correct install script.  (Hopefully
  54. ; this will allow SETUP.EXE to remain stable and unchanged and most custom
  55. ; setup work to take place in simple external programs.)
  56. ;
  57. ; SETUP.EXE can be run from either Windows or DOS.      If run from Windows
  58. ; (i.e. from the Run command within the Program Manager's File menu) it
  59. ; will proceed directly with the installation procedure.  If SETUP.EXE
  60. ; is run from DOS, a message will be displayed instructing the user to
  61. ; run SETUP from within Windows.
  62. ;
  63. ; SETUP will copy single files from disk to disk, or will optionally
  64. ; decompress and/or concatenate files that are too large to fit on a single
  65. ; floppy disk drive.  All file compression must be performed with the
  66. ; Software Toolworks compression program ZIP.EXE.  (The ZIP compression is
  67. ; not compatible with the popular PKZIP formats.)
  68. ;
  69. ; The information in this file determines:
  70. ;
  71. ;       The names of the disks and directories from which, and to which, SETUP
  72. ;       copies and/or decompresses files
  73. ;
  74. ;       The name of the group (or groups) that SETUP creates in the Program
  75. ;       Manager's window, and the names of the program items that SETUP adds
  76. ;       to the group(s).
  77. ;
  78. ; You can create your own custom SETUP program by changing some of the
  79. ; information in this file.
  80. ;
  81. ;
  82. ; The parts of SETUP.INF
  83. ; ----------------------
  84. ;
  85. ; SETUP.INF is similar in format to a Windows initialization (.INI) file.
  86. ;
  87. ; Sections: SETUP.INF is divided into sections.  Each section is identified
  88. ;                       by an alphanumeric name enclosed in square brackets.
  89. ;
  90. ;                       Most section names are hard-coded, that is, SETUP is written to
  91. ;                       search SETUP.INF for that specific section name.  However, some
  92. ;                       section names are defined within other sections and are therefore
  93. ;                       easily customizable.
  94. ;
  95. ; Comments: A comment begins with a semicolor.  You can include a comment
  96. ;                       on the same line as syntax, as long as it comes after the syntax.
  97. ;
  98. ; Spaces:       Spaces are ignored, except when between double quotes or within
  99. ;                       [square brackets] as in a section name.  Blank lines are also
  100. ;                       ignored.
  101. ;
  102. ;
  103. ; Sections in this file
  104. ; ---------------------
  105. ;
  106. ; The rest of this file contains the actual sections and statements that
  107. ; make up the working file.  It also includes comments that explain each
  108. ; section and statement.
  109. ;
  110. ;
  111.  
  112. [dialog]
  113. ; The [dialog] section contains information pertaining to SETUP's dialog box.
  114. ; This section is required.
  115. ;
  116. ; The 'caption' statement determines the text that appears in the title bar
  117. ; of SETUP's dialog box.
  118. ;
  119. ; The following 'caption' statement specifies the caption "Demo App Setup".
  120. ; To specify your own caption, replace the text "Demo App Setup" with the
  121. ; title you want (enclosed in double quotes).
  122.  
  123.   caption = "How Multimedia Computers Work Setup"
  124.  
  125. [startup]
  126. ; The [startup] section contains the text information that appears in the
  127. ; startup screen (i.e. the opening screen) displayed in the SETUP procedure.
  128. ; The 'line1' statement should be customized to reflect your application.
  129. ; The 'line2' and 'line3' statements should be left as is for most
  130. ; applications.  This section is required.
  131. ;
  132. ; The program uses DrawText() to output the text in these three lines and
  133. ; interprets the '&' character as a directive to underscore the next character.
  134. ; If you want to include the '&' character in one of the lines, use "&&"
  135. ; instead to tell DrawText() to print a single '&'
  136.  
  137.   line1 = "Installing How Multimedia Computers Work"
  138.   line2 = "Setup will install this application into the following directory, which it will create on your hard disk."
  139.   line3 = "If you want to install this application into a different directory and/or drive, type the name of the directory."
  140.  
  141. [optional]
  142. ; The [optional] section contains two additional pieces of data that can be
  143. ; used to modify SETUP's behavior.  The 'compress' statement specifies the
  144. ; file extension that SETUP will expect on all compressed files.  The default
  145. ; file extension is ".TRC" for Toolworks Reference Compression.  If you wish
  146. ; your files to have another extension, change the following line accordingly.
  147.  
  148.   compress = ".TRC"
  149.  
  150. ; The 'concat' statement specified the character that SETUP will recognize
  151. ; as a trigger to begin file concatenation.  The default character is '+'.
  152. ; When an input filename is followed by a '+', SETUP will add the next file
  153. ; in the list to this file.  To change the default concatenation character,
  154. ; change the following line.
  155.  
  156.   concat = "+"
  157.  
  158. ; Remember, both of these lines and this entire section are optional.  If you
  159. ; omit them, the default compression extension will be ".TRC" and the default
  160. ; concatenation character will be "+".
  161.  
  162.   smushed = ".SMH"
  163.  
  164. ; If you've used the SMUSH.EXE utility to cocatenate a bunch of small files
  165. ; into a single file it must have the default extension ".SMH" -- if you want
  166. ; to changed the default, set it here.
  167.  
  168. [data]
  169. ; The [data] section includes information about the location to which the
  170. ; application's files should be copied.
  171. ;
  172. ; The 'defdir' statement specified the default directory for installing the
  173. ; application.  This is the drive and directory name that will appear in the
  174. ; SETUP dialog box.  The user can specify a different installation directory
  175. ; by typing a different name.  The 'defdir' statement MUST include a drive
  176. ; letter.
  177. ;
  178. ; The following 'defdir' statement tells SETUP in display the default
  179. ; directory C:\DEMOAPP when asking the user where to install the applcation.
  180. ; To specify your own default directory, replace the text "C:\DEMPAPP"
  181. ; with the drive and directory you want.
  182.  
  183.   defdir = C:\HMMCW
  184.  
  185. [disks]
  186. ; The [disks] section defines the distribution disks that contain the
  187. ; application files.  SETUP uses this information to tell the user to insert
  188. ; the correct disk.
  189. ;
  190. ; Elsewhere in this .INF file, the distribution disks are normally referred
  191. ; to by a single-character disk ID.  This section defines those disk ID's, and
  192. ; includes information about the disk to which each disk ID refers.
  193. ;
  194. ; The format of each disk definition is:
  195. ;
  196. ;       n = path, title
  197. ;
  198. ; where
  199. ;
  200. ;       n               is the disk ID (a single character from 1-9 or A-Z).
  201. ;
  202. ;       path    the path to the source directory on that disk from which SETUP
  203. ;                       should copy files to the destination disk.      The path can be
  204. ;                       be relative to the source directory (see examples below).
  205. ;
  206. ;       title   is the descriptive name for the disk.  The title should match the
  207. ;                       disk's printed or written label exactly.
  208. ;
  209. ; The following disk-definition statements define two sample distribution
  210. ; disks.
  211.  
  212.   1 = .,                "How Multimedia Computers Work Disc"
  213. ;  2 = content,          "How Multimedia Computers Work Disc"
  214. ;  3 = .,               "Demo Application Disk 3"
  215.  
  216. ; The first statement tells SETUP to refer to Disk 1 as "Demo Application
  217. ; Disk 1".  Because the period (.) denotes the current directory, the files
  218. ; on that disk will be copies from the root directory of the distribution
  219. ; disk.
  220. ;
  221. ; The second statement tells SETUP to refer to Disk 2 as "Demo Application
  222. ; Disk 2"; the files that Disk 2 contains will be copied from the \FILES
  223. ; directory of the distribution disk.
  224. ;
  225. ; You can include as many disk-definition statements as necessary.      Every
  226. ; distribution disk should have a corresponding disk-definition statement;
  227. ; otherwise, SETUP cannot tell the user to insert the appropriate disk.
  228. ;
  229. ; The program uses DrawText() to output the text in the disk names and
  230. ; interprets the '&' character as a directive to underscore the next character.
  231. ; If you want to include the '&' character in one of the lines, use "&&"
  232. ; instead to tell DrawText() to print a single '&'
  233.  
  234. [needed.space]
  235. ; The [needed.space] section defines how much disk space, in bytes, your
  236. ; application will require when all files have been decompressed (if required)
  237. ; and copied to the destination diskette.  If the specified amount of space
  238. ; is not available, SETUP will ask the user to specify a different hard disk,
  239. ; or exit SETUP.  This number should be accurate, since it is used by
  240. ; SETUP to update the 'percent complete' bar graph displayed during the
  241. ; file copy process.
  242. ;
  243. ; The following statement tells SETUP that this application requires 300 kb
  244. ; of disk space.
  245.  
  246.   minspace = 4800000
  247.  
  248. [app.copy.appstuff]
  249. ; The [app.copy.appstuff] section contains section-definition statements.
  250. ; Each statement defines a section that list application files to be copied
  251. ; as part of the installation.  The sections are organized by file
  252. ; destination.  You should define a separate section for each destination
  253. ; directory.
  254. ;
  255. ; Each section definition has the following form:
  256. ;
  257. ;       #section_name, 0:dest_pathname
  258. ;
  259. ; where
  260. ;
  261. ;       #section_name   defined the name of the .INF section that lists the
  262. ;                                       files to be copied.
  263. ;
  264. ;       0                               is the disk ID that represents the installation
  265. ;                                       directory.      '0' is a reserved disk ID, and always
  266. ;                                       represents the installation directory -- the directory
  267. ;                                       that the user specified when asked where to install
  268. ;                                       the application.  '@' is another reserved disk ID,
  269. ;                                       and always refers to the Windows directory (i.e.
  270. ;                                       usually C:\WINDOWS).  Circumstances may require you
  271. ;                                       to place files in this directory but in most cases it
  272. ;                                       should be avoided since for many users this directory
  273. ;                                       has grown very large, populated with files of unknown
  274. ;                                       origin.
  275. ;
  276. ;       dest_pathname   is the pathname of the destination directory, relative
  277. ;                                       to the installation directory.  For example, "0:FILES"
  278. ;                                       represents the FILES subdirectory of the installation
  279. ;                                       directory.
  280. ;
  281. ; The following section-definition statements define two sections, [app.user]
  282. ; and [app.system].  The files listed in the [app.user] section will be
  283. ; copies into the installation directory; those listed in the [app.system]
  284. ; directory will be copied into the SYSTEM subdirectory of the installation
  285. ; directory.
  286.  
  287.   #app.user,    0:
  288.   #app.system,  0:content
  289.   #win.dir,             @:
  290.  
  291. [app.user]
  292. ; This section is a user-defined section that lists files to be copies to a
  293. ; particular destination directory.  The [app.copy.appstuff] section defines
  294. ; the name of this section and the destination directory for the files listed
  295. ; here.
  296. ;
  297. ; In each section like this one, you should list all files that you want
  298. ; copied to the same destination.  For example, all the files in this section,
  299. ; [app.user], will be copied to the installation directory.
  300. ;
  301. ; SETUP copies the files listed in this section in the order which they are
  302. ; listed.
  303. ;
  304. ; The syntax of each file listing is
  305. ;
  306. ;       N:FILENAME, "Description"
  307. ;
  308. ; where
  309. ;
  310. ;       N:                      is the disk ID of the disk that contains the file.      (Disk IDs
  311. ;                               are defined in the [disks] section.)  If the specified disk
  312. ;                               is not in the disk drive, SETUP prompts the user to insert it.
  313. ;
  314. ;       FILENAME        is the name of the file, including the filename extension, if
  315. ;                               required.  Two special cases deserve mention here.
  316. ;
  317. ;                               First, if the file extension is the default ".TRC" (or as
  318. ;                               redefined in the [options] section above, SETUP will
  319. ;                               decompress this file as it is being copied to the destination.
  320. ;                               Only files compressed by the Toolworks ZIP.EXE program will
  321. ;                               be correctly decompressed.      The name of the file when it is
  322. ;                               copied into the destination directory will not be FILENAME
  323. ;                               but will be that of the original 'uncompressed' file.
  324. ;
  325. ;                               Second, if the filename is followed by the default "+"
  326. ;                               character (or another character as defined in the [options]
  327. ;                               section above), SETUP will assume that the following file
  328. ;                               should be concatenated onto the end of this file.  SETUP
  329. ;                               will continue to concatenate files until it reaches a
  330. ;                               FILENAME without the trailing "+" character, at which time
  331. ;                               the file will be closed.  The filename of the final file
  332. ;                               in the destination directory will be that of the first file
  333. ;                               in the concatenation chain.
  334. ;
  335. ;       Description is the descriptive text that SETUP displays as it is copying
  336. ;                               the file.  If you leave the description blank, SETUP will
  337. ;                               continue displaying the descriptive text from the previous
  338. ;                               file.  This lets you use a general name for an entire group
  339. ;                               of related files.
  340. ;
  341. ; For example, the first statement below tells SETUP to copy the file
  342. ; FILE1.FOO from Disk 1 and to display the descriptive text "Demo App" while
  343. ; copying that file.  The second, third and fourth statements concatenate
  344. ; the files FILE2.FOO (from Disk 1), FILE3.FOO (from Disk 1) and FILE4.FOO
  345. ; (from Disk 2) into a single destination file FILE2.FOO while displaying
  346. ; the text "Demo App Data".  All of these files are copied to the destination
  347. ; directory specified in the section-definition statement in the
  348. ; [app.copy.appstuff] section.
  349.  
  350.   1:hcw_cc.dll, "Custom Control Library"
  351.   1:bwcc.dll, "Custom Control Library"
  352.   1:ter.dll, "Text Display Library"
  353.   1:hcw_anim.dll, "Animation Library"
  354.   1:zifbook.ini, "Animation Index"
  355.   1:hmmcw.exe, "Program"
  356.   1:hcwdemo.exe, "Demo"
  357.   1:demo.txt, "Demo Instructions"
  358.  
  359. [app.system]
  360. ; Like the [app.user] section above, this section is user defined and lists
  361. ; files to be copied to a particular destination directory.  The
  362. ; [app.copy.appstuff] section defines the name of this section and the
  363. ; destination directory of the files listed in this section.  In the
  364. ; example below, FILE5.TRC and FILE6.TRC will be concatenated into a single
  365. ; file.  Since the files have the ".TRC" file extension, they will be
  366. ; uncompressed during the copy process.  The destination filename will be
  367. ; extracted from the ZIP header in FILE5.TRC.
  368.  
  369.   1:content\universl.ttf, "Fonts"
  370.   1:content\universb.ttf, "Fonts"
  371.   1:content\backsub.bmp, "Interface Art"
  372.   1:content\forparts.bmp, "Interface Art"
  373.   1:content\greymom.bmp, "Interface Art"
  374.   1:content\main.bmp, "Interface Art"
  375.   1:content\mothrsub.bmp, "Interface Art"
  376.   1:content\almanac.bmp, "Interface Art"
  377.   1:content\map.bmp, "Interface Art"
  378.   1:content\anx\main.anx, "Interface Art"
  379.   1:content\anx\mothrsub.anx, "Interface Art"
  380.   1:content\anx\backsub.anx, "Interface Art"
  381.   1:content\anx\map.anx, "Interface Art"
  382.   1:content\greyback.bmp, "Interface Art"
  383.   1:content\howtitle.bmp, "Interface Art"
  384.   1:content\twrxbig.bmp, "Interface Art"
  385.   1:content\howmain.bmp, "Interface Art"
  386.  
  387. [win.dir]
  388. ; This section sends files to the default Windows directory since in the
  389. ; [app.copy.appstuff] directory, this section was defined with the special
  390. ; disk ID of '@'
  391.  
  392. ;  3:file7.dll
  393.  
  394. [progman.groups]
  395. ; The optional [progman.groups] section tells SETUP to create Program
  396. ; Manager groups for your application. (SETUP then uses DDE to communicate
  397. ; with Program Manager.)
  398. ;
  399. ; The section lists the names of the groups you want to create. You then
  400. ; define additional sections in this file; those sections list the program
  401. ; items you want in each group.
  402. ;
  403. ; The syntax for each group name is:
  404. ;
  405. ;       groupname, [groupfile.grp]
  406. ;
  407. ; where
  408. ;
  409. ;       groupname               is the title you want Program Manager to display under
  410. ;                                       the icon that represents the group. (The groupname will
  411. ;                                       also be the name of the section that defines the contents
  412. ;                                       of the group.)  If you want to have the group name contain
  413. ;                                       spaces, enclose it in "double quotes".
  414. ;
  415. ;       groupfile.grp   is the filename of the file in which Program Manager
  416. ;                                       will save information about the group. (You must include
  417. ;                                       the .GRP filename extension.) This parameter is optional;
  418. ;                                       if you omit it, SETUP uses a default name for the
  419. ;                                       group file.
  420. ;
  421. ; The following group-definition statement tells SETUP to create a group named
  422. ; Demo, and store its information in a file named DEMO_APP.GRP. The [demo]
  423. ; section will contain information about the group's contents.
  424.  
  425.   HowMultimediaComputersWork,hmmcw.grp
  426.  
  427. [HowMultimediaComputersWork]
  428. ; This section is a user-defined section that define the contents of a
  429. ; Program Manager group file. The [progman.groups] section defines the name
  430. ; of this section and the group, and the name of the file in which to store
  431. ; information about the group.
  432. ;
  433. ; In each section like this one, you should list all items that you want
  434. ; SETUP to add to the group.
  435. ;
  436. ; The syntax for item-definition statements is:
  437. ;
  438. ;       "Description",APPFILE.EXE,[ICONFILE.EXE[,N]]
  439. ;
  440. ; where
  441. ;
  442. ;       Description             is the text that will appear below the program icon
  443. ;                                       when displayed in the Program Manager group.
  444. ;
  445. ;       APPFILE.EXE             is the command line that starts the application.
  446. ;
  447. ;       ICONFILE.EXE    is the application file that contains the icon you want
  448. ;                                       to represent the application. Typically, this is the
  449. ;                                       executable application file, but it could be a different
  450. ;                                       file. (You can also specify a .ICO file, created using
  451. ;                                       the SDKPaint tool.) This parameter is optional; if you
  452. ;                                       omit it, SETUP will use the first icon it finds in
  453. ;                                       APPFILE.EXE.
  454. ;
  455. ;       N                               is the offset of the icon you want to use within the file
  456. ;                                       ICONFILE.EXE.  This parameter is optional; if you omit it,
  457. ;                                       SETUP uses the first icon it finds in ICONFILE.EXE.
  458. ;                                       You must include this parameter if the file you specify
  459. ;                                       contains more than one icon, and you want to use an icon
  460. ;                                       other than the first icon.
  461. ;
  462. ;                                       To use the Nth icon, specify the number N-1. For example,
  463. ;                                       to use the third icon, specify 2.
  464. ;
  465. ; For example, the following item-definition statement tells SETUP to add an
  466. ; item titled "Demo Application" to Program Manager. The application command
  467. ; line is FILE1.FOO; the file that contains the application icon is DEMO.ICO
  468.  
  469.   "How Multimedia Computers Work", hmmcw.exe, hmmcw.exe
  470.   "HMMCW Demo", hcwdemo.exe, hcwdemo.exe
  471.   "Demo Instructions", demo.txt, hcwdemo.txt
  472.